﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true" 
  Inherits="Kiiro.SiteDefinition.ProjectPages.Documents, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<%@ Register TagPrefix="v2" TagName="WelcomeMessagePanel" Src="~/_controltemplates/Kiiro/WelcomeMessagePanel.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitDocLibraryMoveRename);
  </script>
  
  <div id="pop">
    <div id="pop-wrap">
      <div id="pop-top-left">
        <div id="pop-top-right">
          <a href="#" class="closeDOMWindow">
            <img src="/_layouts/IMAGES/kiiro/icon-close-filter.png" alt="close" />
          </a>        
        </div>      
      </div>
      <div id="pop-content">
        <h2>Move File:</h2>
        <div>
          <asp:DropDownList ID="ddlDestinations" runat="server" CssClass="destinations" />
          <asp:TextBox ID="txtName" runat="server" CssClass="name hidden" />
          <img src="/_layouts/images/kiiro/ajax-loader.gif" alt="loading" class="ajax-loader hidden" />
          <br />
          <img src="/_layouts/images/kiiro/button-save.png" class="save hidden" alt="Save" />
        </div>
        <div class="validation-message hidden">&nbsp;</div>
      </div>        
      <div id="pop-bottom-left">
        <div id="pop-bottom-right">
        </div>
      </div> 
    </div>
  </div>
  
  <div class="actionbar">
    <div class="wrap-has-tabs">
      <asp:Literal ID="lBreadCrumb" runat="server" />
    </div>
  </div>
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel" id="columnHeaders" runat="server">
            <div class="panel-wrap table-documents">
              <div class="panel-title">
                <div class="title">
                  <span>
                    <p class="sort">
                      <asp:LinkButton ID="lbTitleSort" runat="server" OnClick="SortBy_Click" CommandArgument="Title"><b>Title</b></asp:LinkButton><asp:Literal
                        ID="titleIcon" runat="server" /></p>
                  </span>
                </div>
                <div id="actions" runat="server" class="actions">
                  &nbsp;
                </div>
                <div id="userheader" runat="server" class="users">
                  <div class="created">
                    <span>
                      <p class="sort">
                        <asp:LinkButton ID="lbCreatedSort" runat="server" OnClick="SortBy_Click" CommandArgument="Created">Created</asp:LinkButton><asp:Literal
                          ID="createdIcon" runat="server" /></p>
                    </span>
                  </div>
                  <div class="modified">
                    <span>
                      <p class="sort">
                        <asp:LinkButton ID="lbModifiedSort" runat="server" OnClick="SortBy_Click" CommandArgument="Modified">Modified</asp:LinkButton><asp:Literal
                          ID="modifiedIcon" runat="server" /></p>
                    </span>
                  </div>
                </div>
              </div>
              <div id="documentContent" runat="server" class="has-pages">
                <asp:Repeater ID="rptDocuments" runat="server" OnItemDataBound="rptDocuments_ItemDataBound">
                  <ItemTemplate>
                    <div id="docDiv" runat="server" class="document">
                      <div class="title">
                        <asp:Literal ID="docLink" runat="server" />
                      </div>
                      <div class="actions">
                          <ul>
                            <asp:Literal ID="historyLink" runat="server" />
                            <li id="liRename" runat="server" visible="false" >
                              <asp:HyperLink ID="lnkRename" runat="server" Text="Rename" CssClass="lnkRename" />
                            </li>
                            <li id="liMove" runat="server" visible="false">
                              <asp:HyperLink ID="lnkMove" runat="server" Text="Move" CssClass="lnkMove" />
                            </li>
                            <li>
                              <asp:LinkButton ID="lbDelete" runat="server" OnClick="lbDelete_Click" />
                            </li>
                          </ul>
                      </div>
                      <div class="users">
                        <div class="created">
                          <asp:Literal ID="createdInfo" runat="server" />
                        </div>
                        <div class="modified">
                          <asp:Literal ID="updatedInfo" runat="server" />
                        </div>
                      </div>
                    </div>
                  </ItemTemplate>
                </asp:Repeater>
              </div>
              <div id="attachmentContent" runat="server" class="has-pages" visible="false">
                <asp:Repeater ID="rptAttachments" runat="server" OnItemDataBound="rptAttachments_ItemDataBound">
                  <ItemTemplate>
                    <div id="docDiv" runat="server" class='document'>
                      <div class="title">
                        <asp:Literal ID="docLink" runat="server" />
                      </div>
                      <div class="attachments-column">
                        <div class="itemInfo">
                          <asp:Literal ID="itemInfo" runat="server" />
                        </div>
                        <div class="modified">
                          <asp:Literal ID="uploadInfo" runat="server" />
                        </div>
                      </div>
                    </div>
                  </ItemTemplate>
                </asp:Repeater>
              </div>
            </div>
          </div>
          <v2:Pager id="v2Pager" runat="server" />
          <v2:WelcomeMessagePanel id="v2WelcomeMessagePanel" runat="server" visible="false" />
          <div id="kiiroDocuments" runat="server" visible="false">
            <div style="padding: 10px; text-align: center; margin: 10px 0px;">
              <div style="font-size: 18px; margin-bottom: 15px;">
                <a id="firstDocument" runat="server">Upload the first document for this project.</a>
              </div>
              <p>
                Or you can <a id="firstFolder" runat="server">create a folder</a> to organize your
                documents.</p>
              <p>
                For help setting up Kiiro visit <a href="http://help.getkiiro.com">http://help.getkiiro.com</a>.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</asp:Content>
